<template>
  <div class="panel-desinger">
    <div class="left">
      <img :src="designerInfo.avatar" alt />
    </div>
    <div class="right">
      <div class="top">
        <div class="name">{{designerInfo.name}}</div>
        <div class="look">
          <i></i>
          <span>{{designerInfo.pv}}</span>
        </div>
      </div>
      <div class="middle">
        <div class="price">报价:{{designerInfo.rates}}元/平米</div>
        <div class="tag">
          <ul>
            <li v-for="(item ,index) of designerInfo.styles.slice(0, 3)" :key="index">{{ item }}</li>
          </ul>
        </div>
      </div>
      <div class="bottom">
        <div class="pic-left">
          <img :src="designerInfo.productions[0]" alt />
        </div>
        <div class="pic-right">
          <div class="pic-right-top">
            <img :src="designerInfo.productions[1]" alt />
          </div>
          <div class="pic-right-bottom">
            <img :src="designerInfo.productions[2]" alt />
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    designerInfo: {
      type: Object,
      default: () => ({})
    }
  }
}
</script>
<style lang="scss" scoped>
@import '@/styles/mixin.scss';
.panel-desinger {
  width: 100%;
  background: rgba(255, 255, 255, 1);
  padding: 0.32rem 0.18rem 0.4rem 0.17rem;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  .left {
    width: 1rem;
    height: 1rem;
    overflow: hidden;
    img {
      height: 100%;
      width: 100%;
    }
  }
  .right {
    display: flex;
    flex-direction: column;
    padding: 0.07rem 0 0 0.24rem;
    box-sizing: border-box;
    flex: 1;
    .top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      .name {
        font-size: 0.32rem;
        font-family: PingFang SC;
        font-weight: 600;
        color: rgba(0, 4, 0, 1);
        line-height: 0.31rem;
        font-weight: bold;
      }
      .look {
        font-size: 0;
        display: flex;
        align-items: center;
        i {
          display: inline-block;
          width: 0.23rem;
          height: 0.24rem;
          background: url("../assets/images/icon_djl.png") no-repeat;
          background-size: cover;
          margin-right: 0.12rem;
        }
        span {
          font-size: 0.24rem;
          font-family: PingFang SC;
          font-weight: 400;
          color: rgba(0, 4, 0, 1);
        }
      }
    }
    .middle {
      .price {
        font-size: 0.24rem;
        font-family: PingFang SC;
        font-weight: 400;
        color: rgba(0, 4, 0, 1);
        line-height: 0.32rem;
        margin-top: 0.22rem;
      }
      .tag {
        margin-top: 0.16rem;
        ul {
          display: flex;
          align-items: center;
          li {
            background: rgba(227, 226, 226, 0.46);
            padding: 0.1rem;
            font-size: 0.2rem;
            font-family: PingFang SC;
            font-weight: 400;
            color: rgba(0, 4, 0, 1);
            margin-right: 0.2rem;
            &:last-child {
              margin-right: 0;
            }
          }
        }
      }
    }
    .bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 0.33rem;
      height: 2.38rem;
      .pic-left {
        width: 3.59rem;
        height: 100%;
        overflow: hidden;
        position: relative;
        img {
          position: absolute;
          @include center();
          width: 100%;
          // height: 100%;
        }
      }
      .pic-right {
        height: 100%;

        display: flex;
        justify-content: space-between;
        flex-direction: column;
        .pic-right-top {
          width: 1.46rem;
          height: 1.27rem;
          overflow: hidden;
          img {
            height: 100%;
            width: 100%;
          }
        }
        .pic-right-bottom {
          width: 1.46rem;
          height: 0.97rem;
          overflow: hidden;
          img {
            width: 100%;
            height: 100%;
          }
        }
      }
    }
  }
}
</style>
